@extends('home.layout.index')


<link rel="stylesheet" href="/homeCSS/css/573ac0fc.css">  <!-- 搜索 -->
<link href="/homeCSS/css/bootstrap.min.css" rel="stylesheet">  <!-- 搜索 -->

@section('con')
<!-- 模态框 -->
<div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="exampleModalLabel">请提问:</h4>
      </div>
      <div class="modal-body">
        <form action="/home/index/insert" method="post">
            <div class="content">
                <label for="text" class="ccontent">话题搜索:</label>
                <ul class="tags"></ul>
                <div class="input-container" style="display:block">
                <textarea class="form-control" id="sousuo" name="topic" value="" placeholder="搜索话题"></textarea>
                <div style="display: none;" class="ui-suggest" role="listbox" id=":0">
                </div>
            </div>
            </div>
        
            <div class="form-group">
                <label for="text" class="control-label">问题:</label>
                <textarea class="form-control" id="message-text" name="atitle" value=""></textarea>
            </div>
            <div class="form-group">
                <label for="text" class="control-label">问题描述:</label>
                <textarea class="form-control" id="message-text" name="content" value=""></textarea>
            </div>
                 <input type="hidden" name="uid" value="<?php echo $_SESSION['id']?>"/>
                 <input type="hidden" name="time" value="<?php echo time();?>">
             
            <div class="modal-footer">
            {{csrf_field()}}
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                <button type="submit" class="btn btn-primary">提交</button>
            </div>
        </form>

      </div>
    </div>
  </div>
</div> 
<!--模态框--> 
<div class="zg-wrap zu-main clearfix " role="main">
    <div class="zu-main-content">
        <div class="zu-main-content-inner">
            <div class="HomeEntry" data-za-module="HomeEntry">
                <div class="HomeEntry-avatar">
                    <img class="Avatar Avatar--xs" src="<?php echo $_SESSION['pic'] ?>"
                   >
                </div>
                <div class="HomeEntry-box">
                    <span class="HomeEntry-boxArrow">
                    </span>
                    <ul class="HomeEntry-list">
                         <li class="HomeEntry-item">
                            <a data-toggle="modal" data-target="#exampleModal" data-whatever="@mdo" style="cursor:pointer">
                                <i class="sprite-home-que stion-off" ></i>提问
                            </a>
                        </li>
                        <li class="HomeEntry-item">
                            <a href="/home/answer" target="_blank" class="HomeEntry-answer js-HomeEntry-answer">
                                <i class="sprite-home-answer-off">
                                </i>
                                回答
                            </a>
                        </li>
                        <li class="HomeEntry-item">
                            <a href="//zhuanlan.zhihu.com/write" target="_blank" class="HomeEntry-post js-HomeEntry-post">
                                <i class="sprite-home-post-off">
                                </i>
                                写文章
                            </a>
                        </li>
                    </ul>
                    <div class="HomeEntry-draft">
                        <a href="/draft" target="_blank">
                            草稿
                        </a>
                    </div>
                </div>
            </div>
          
            <div class="zg-section" id="zh-home-list-title">
                <i class="zg-icon zg-icon-feedlist">
                </i>
                最新动态
                <input type="hidden" id="is-topstory">
                <span class="zg-right zm-noti-cleaner-setting" style="list-style:none">
                    <a href="/settings/filter" class="zg-link-gray-normal">
                        <i class="zg-icon zg-icon-settings">
                        </i>
                        设置
                    </a>
                </span>
            </div>

            <div class="zu-main-feed-con navigable" data-feedtype="topstory" id="zh-question-list"
            data-widget="navigable" data-navigable-options="{&quot;items&quot;:&quot;> .zh-general-list .feed-content&quot;,&quot;offsetTop&quot;:-82}">
                <a href="javascript:;" class="zu-main-feed-fresh-button" id="zh-main-feed-fresh-button"
                style="display:none">
                </a>
                <div id="js-home-feed-list" class="zh-general-list topstory clearfix"
                data-init="{&quot;params&quot;: {}, &quot;nodename&quot;: &quot;TopStory2FeedList&quot;}"
                data-za-module="TopStoryFeedList">
              
                 @foreach($array as $k=>$v)
                  <!-- 回答问题 -->
                  @if($v['bs']==0)
                  <!-- 每一个问题 每一个答案都有一个id过来 -->
                    <div class="feed-item folding feed-item-hook feed-item-1491718400
                    " feed-item-a="" data-type="a" id="feed-1491718400" data-za-module="FeedItem"
                    data-za-index="">
                        <meta itemprop="ZReactor" data-id="58019896" data-meta="{&quot;source_type&quot;: &quot;member_answer_question&quot;, &quot;voteups&quot;: 0, &quot;comments&quot;: 0, &quot;source&quot;: [[&quot;member&quot;, &quot;579c732d98e3797028793bb456af7b2b&quot;]]}">
                        <div class="feed-item-inner">
                            <div class="avatar">
                                <a title="暗灭" data-hovercard="p$t$ptteng" class="zm-item-link-avatar"
                                target="_blank" href="/people/ptteng">
                                    <img src="{{$v['pic']}}"
                                    class="zm-item-img-avatar">
                                </a>
                            </div>
                            <div class="feed-main">
                                <div class="feed-source" data-za-module="FeedSource">
                                    <a data-hovercard="p$t$ptteng" href="https://www.zhihu.com/people/ptteng"
                                    target="_blank" class="zg-link author-link" title="暗灭">
                                        {{$v['nickName']}}
                                    </a>
                                    回答了问题
                                    <span class="zg-bull">
                                        •
                                    </span>
                                    <span class="time" data-timestamp="1491718400000">
                                        <?php echo tranTime($v['time']);?> 
                                    </span>
                                </div>
                                <div class="feed-content" data-za-module="AnswerItem">
                                    <meta itemprop="answer-id" content="58019896">
                                    <meta itemprop="answer-url-token" content="156178916">
                                    <h2 class="feed-title">
                                        <a style="font-size:20px" class="question_link" href="/question/39562337/answer/156178916" target="_blank"
                                        data-id="8032191" data-za-element-name="Title">
                                            {{$v['ititle']}}
                                        </a>
                                    </h2>
                                    <div class="feed-question-detail-item">
                                        <div class="question-description-plain zm-editable-content">
                                        </div>
                                    </div>
                                    <div class="expandable entry-body">
                                        <link itemprop="url" href="/question/39562337/answer/156178916">
                                        <!-- <meta itemprop="answer-id" content="58019896">
                                        <meta itemprop="answer-url-token" content="156178916"> -->
                                        <div class="zm-item-vote" >
                                        

                                            <div class="id1" daid="{{$v['id']}}" pass="{{$v['pass']}}">
                                            <a  class="zm-item-vote-count js-expand js-vote-count" href="javascript:;"
                                            data-bind-votecount="">
                                                 {{$v['pass']}}
                                            </a> </div>

                                        </div>

                                        <div class="zm-votebar" data-za-module="VoteBar">
                                            <button class="up" aria-pressed="false" title="赞同">
                                                <i class="icon vote-arrow">
                                                </i>
                                                <span class="count">
                                                   {{$v['pass']}}
                                                </span>
                                                <span class="label sr-only">
                                                    赞同
                                                </span>
                                            </button>
                                            <button class="down" aria-pressed="false" title="反对，不会显示你的姓名">
                                                <i class="icon vote-arrow">
                                                </i>
                                                <span class="label sr-only">
                                                    反对，不会显示你的姓名
                                                </span>
                                            </button>
                                        </div>
                                        <div class="zm-item-answer-author-info">
                                            <span class="summary-wrapper">
                                                <span class="author-link-line">
                                                    <a class="author-link" data-hovercard="p$t$ptteng" target="_blank" href="/people/ptteng">
                                                        {{$v['nickName']}}
                                                    </a>
                                                </span>
                                                <span title="{{$v['introduce']}}" class="bio">
                                                    {{$v['introduce']}}
                                                </span>
                                            </span>
                                        </div>
                                        <div class="zm-item-vote-info empty" data-votecount="0" data-za-module="VoteInfo">
                                        </div>
                                        <div class="zm-item-rich-text expandable js-collapse-body" data-resourceid="8032191"
                                        data-action="/answer/content" data-author-name="暗灭" data-entry-url="/question/39562337/answer/156178916">
                                            <textarea hidden="" class="content">
                                                &lt;p&gt;2个程序员。&lt;/p&gt;&lt;p&gt;连续熬了两天两夜在客户那里驻场写代码。&lt;/p&gt;&lt;br&gt;&lt;p&gt;实在困的不行了，老板说，你们休息一下吧。&lt;/p&gt;&lt;p&gt;他们说好。&lt;/p&gt;&lt;p&gt;于是玩了两局Dota。&lt;/p&gt;&lt;br&gt;&lt;p&gt;结束了以后继续写代码。&lt;/p&gt;
                                            </textarea>
                                            <div class="zh-summary summary clearfix">
                                                {{$v['content']}}

                                                
                                            </div>
                                            <p class="visible-expanded">
                                                <a itemprop="url" class="answer-date-link meta-item" target="_blank" href="/question/39562337/answer/156178916">
                                                    发布于 {{date('Y-m-d H:i:s',$v['time'])}}
                                                </a>
                                            </p>
                                        </div>
                                    </div>
                                    <div class="feed-meta">
                                        <div class="zm-item-meta answer-actions clearfix js-contentActions">
                                            <div class="zm-meta-panel">
                                                <a data-follow="q:link" class="follow-link zg-follow meta-item" href="javascript:;"
                                                id="sfb-8032191">
                                                    <i class="z-icon-follow">
                                                    </i>
                                                    关注问题
                                                </a>
                                                <span class="ahh" daid="{{$v['id']}}">
                                                <a href="" onclick="return false"  name="addcomment" class="meta-item toggle-comment js-toggleCommentBox">
                                                    <i class="z-icon-comment">
                                                    </i>
                                                    查看评论
                                                </a>
                                                </span>
                                                <span style="display:none" class="hha">
                                                <a href="" onclick="return false"  name="addcomment" class="meta-item toggle-comment js-toggleCommentBox">
                                                    <i class="z-icon-comment">
                                                    </i>
                                                    收起评论
                                                </a>
                                                </span>
                                                <a href="#" class="meta-item zu-autohide js-thank" data-thanked="false">
                                                    <i class="z-icon-thank">
                                                    </i>
                                                    感谢
                                                </a>
                                                <a href="#" class="meta-item zu-autohide js-share goog-inline-block goog-menu-button"
                                                role="button" aria-expanded="false" tabindex="0" aria-haspopup="true" style="user-select: none;">
                                                    <div class="goog-inline-block goog-menu-button-outer-box">
                                                        <div class="goog-inline-block goog-menu-button-inner-box">
                                                            <div class="goog-inline-block goog-menu-button-caption">
                                                                <i class="z-icon-share">
                                                                </i>
                                                                分享
                                                            </div>
                                                            <div class="goog-inline-block goog-menu-button-dropdown">
                                                                &nbsp;
                                                            </div>
                                                        </div>
                                                    </div>
                                                </a>
                                                <a href="#" class="meta-item zu-autohide js-collect">
                                                    <i class="z-icon-collect">
                                                    </i>
                                                    收藏
                                                </a>
                                                <span class="zg-bull zu-autohide">
                                                    •
                                                </span>
                                                <a href="#" class="meta-item zu-autohide js-noHelp">
                                                    没有帮助
                                                </a>
                                                <span class="zg-bull zu-autohide">
                                                    •
                                                </span>
                                                <a href="#" class="meta-item zu-autohide js-report">
                                                    举报
                                                </a>
                                                <meta name="copyrightStatus" content="1">
                                                <meta name="disableCopyAvatar" content="">
                                                <span class="zg-bull">
                                                    •
                                                </span>
                                                <a href="/terms#sec-licence-1" target="_blank" class="meta-item copyright">
                                                    作者保留权利
                                                </a>
                                                <button class="meta-item item-collapse js-collapse">
                                                    <i class="z-icon-fold">
                                                    </i>
                                                    收起
                                                </button>
                                            </div>
                                        </div>
                                        <!-- biaoji -->
                                        <div style="display:none" data-reactid=".0"
                                        data-za-module="CommentList">
                                            
                                           
                                            <br>
                                            <div data-reactid=".0.7" class="_CommentForm_root_1-ko _CommentForm_expanded_39uD _CommentForm_bordered_2isg">
                                            <input  type="text" name="pl1" style="border:1px solid #DDDDDD;border-radius:5px;height:40px;width:420px;">
                                            <div >&nbsp&nbsp &nbsp&nbsp &nbsp&nbsp &nbsp&nbsp &nbsp&nbsp &nbsp&nbsp &nbsp&nbsp&nbsp&nbsp &nbsp&nbsp &nbsp&nbsp &nbsp&nbsp &nbsp&nbsp &nbsp&nbsp &nbsp&nbsp&nbsp&nbsp &nbsp&nbsp &nbsp&nbsp &nbsp&nbsp &nbsp&nbsp &nbsp&nbsp &nbsp&nbsp&nbsp&nbsp &nbsp&nbsp &nbsp&nbsp &nbsp&nbsp &nbsp &nbsp&nbsp &nbsp&nbsp &nbsp&nbsp
                                            <button class="btn1" daid="{{$v['id']}}" data-reactid=".0.7.2.0" class="_CommentForm_submitButton_1N49 zg-btn-blue">
                                                    评论
                                            </button>
                                               
                                            </div>
                                            </div>
                                        </div>
                                        <a href="#" class="ignore zu-autohide" name="dislike" data-tooltip="s$b$不感兴趣">
                                        </a>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="undo-dislike-options" data-item_id="1491718400">
                            此内容将不会在动态中再次显示
                            <span class="zg-bull">
                                •
                            </span>
                            <a href="#" class="meta-item revert">
                                撤销
                            </a>
                            <a href="#" class="ignore zu-autohide close">
                            </a>
                        </div>
                    </div>

                    @endif
                    <!-- 赞了回答 -->
                    @if($v['bs']==1)
                    <div class="feed-item folding feed-item-hook feed-item-1491874697
                    " feed-item-a="" data-type="a" id="feed-1491874697" data-za-module="FeedItem"
                    data-za-index="">
                      <meta itemprop="ZReactor" data-id="58097280" data-meta="{&quot;source_type&quot;: &quot;member_voteup_answer&quot;, &quot;voteups&quot;: 157, &quot;comments&quot;: 13, &quot;source&quot;: [[&quot;member&quot;, &quot;26c245e19ec6653b5f882cba491ded75&quot;]]}">
                      <div class="feed-item-inner">
                        <div class="avatar">
                          <a title="lxghost" data-hovercard="p$t$lxghost" class="zm-item-link-avatar"
                          target="_blank" href="/people/lxghost">
                            <img src="{{$v['pic']}}" class="zm-item-img-avatar">
                          </a>
                        </div>
                        <div class="feed-main">
                          <div class="feed-source" data-za-module="FeedSource">
                            <a data-hovercard="p$t$lxghost" href="https://www.zhihu.com/people/lxghost"
                            target="_blank" class="zg-link author-link" title="lxghost">
                             {{$v['nname']}} 
                            </a>
                            赞同了回答
                            <span class="zg-bull">
                              •
                            </span>
                            <span class="time" data-timestamp="1491874697000">
                              <?php echo tranTime($v['time']);?> 
                            </span>
                          </div>
                          <div class="feed-content" data-za-module="AnswerItem">
                            <meta itemprop="answer-id" content="58097280">
                            <meta itemprop="answer-url-token" content="156371288">
                            <h2 class="feed-title">
                              <a style="font-size:20px"  class="question_link" href="/question/58103149/answer/156371288" target="_blank"
                              data-id="15462478" data-za-element-name="Title">
                                {!! $v['ititle'] !!}
                              </a>
                            </h2>
                            <div class="feed-question-detail-item">
                              <div class="question-description-plain zm-editable-content">
                                如题
                              </div>
                            </div>
                            <div class="expandable entry-body">
                              <link itemprop="url" href="/question/58103149/answer/156371288">
                              <!-- <meta itemprop="answer-id" content="58097280">
                              <meta itemprop="answer-url-token" content="156371288"> -->
                              <div class="zm-item-vote">
                                <div class="id1" daid="{{$v['id']}}" pass="{{$v['pass']}}">
                                <!-- -->
                             
                                <a  class="zm-item-vote-count js-expand js-vote-count" href="javascript:;"
                                data-bind-votecount="">
                                     {{$v['pass']}}
                                </a> </div>
                              </div>
                              <div class="zm-votebar" data-za-module="VoteBar">
                                <button class="up" aria-pressed="false" title="赞同">
                                  <i class="icon vote-arrow">
                                  </i>
                                  <span class="count">
                                    {{$v['pass']}}
                                  </span>
                                  <span class="label sr-only">
                                    赞同
                                  </span>
                                </button>
                                <button class="down" aria-pressed="false" title="反对，不会显示你的姓名">
                                  <i class="icon vote-arrow">
                                  </i>
                                  <span class="label sr-only">
                                    反对，不会显示你的姓名
                                  </span>
                                </button>
                              </div>
                              <div class="zm-item-answer-author-info">
                                <span class="summary-wrapper">
                                  <span class="author-link-line">
                                    <a class="author-link" data-hovercard="p$t$chen-li-jie-75" target="_blank"
                                    href="/people/chen-li-jie-75">
                                      {{$v['nickName']}}
                                    </a>
                                  </span>
                                  <span title="咪啪~" class="bio">
                                    {{$v['introduce']}}
                                  </span>
                                </span>
                              </div>
                              <div class="zm-item-vote-info" data-votecount="157" data-za-module="VoteInfo">
                                <span class="voters text">
                                  <span class="user-block">
                                    <a data-hovercard="p$t$lxghost" href="https://www.zhihu.com/people/lxghost"
                                    target="_blank" class="zg-link author-link" title="lxghost">
                                      lxghost
                                    </a>
                                  </span>
                                  &nbsp;
                                  <a href="#" class="more text">
                                    等&nbsp;
                                    <span class="js-voteCount">
                                      157
                                    </span>
                                    &nbsp;人赞同
                                  </a>
                                </span>
                              </div>
                              <div class="zm-item-rich-text expandable js-collapse-body" data-resourceid="15462478"
                              data-action="/answer/content" data-author-name="废柴少女幽香酱" data-entry-url="/question/58103149/answer/156371288">
                                <textarea hidden="" class="content">
                                  &lt;p&gt;谢队友 @Jin Ce 邀请。。。&lt;/p&gt;&lt;p&gt;好像我也当了两年ACM队长了。。。可能比的也还凑合。。。我总结了一些经验。。。&lt;/p&gt;&lt;p&gt;1.
                                  精准的眼光，善于发现人才。比如，大二要结束的时候我一眼就看出dls日后必成大器，果断抱了大腿，后面的事情大家也都知道了。&lt;/p&gt;&lt;p&gt;2.
                                  扎实的相声功底。比赛场上场下队员难免会紧张，尤其是没过题的时候，这个时候队长就要挺身而出，说学逗唱，讲几个段子安慰队友，让队伍里充满欢快的气氛。让大家在欢声笑语中打出gg。&lt;/p&gt;&lt;p&gt;3.
                                  在比赛之外多多帮助队友，比如为了让队友有时间训练，要主动帮他写作业。&lt;/p&gt;
                                </textarea>
                                <div class="zh-summary summary clearfix">
                                  {!!$v['content']!!}
                                  
                                </div>
                                <p class="visible-expanded">
                                  <a itemprop="url" class="answer-date-link meta-item" data-tooltip="s$t$发布于 昨天 14:55"
                                  target="_blank" href="/question/58103149/answer/156371288">
                                    编辑于 发布于 {{date('Y-m-d H:i:s',$v['datime'])}}
                                  </a>
                                </p>
                              </div>
                            </div>
                            <div class="feed-meta">
                              <div class="zm-item-meta answer-actions clearfix js-contentActions">
                                <div class="zm-meta-panel">
                                  <a data-follow="q:link" class="follow-link zg-follow meta-item" href="javascript:;"
                                  id="sfb-15462478">
                                    <i class="z-icon-follow">
                                    </i>
                                    关注问题
                                  </a>
                                  <span class="ahh" daid="{{$v['id']}}">
                                    <a href="" onclick="return false"  name="addcomment" class="meta-item toggle-comment js-toggleCommentBox">
                                        <i class="z-icon-comment">
                                        </i>
                                        查看评论
                                    </a>
                                    </span>
                                    <span style="display:none" class="hha">
                                                <a href="" onclick="return false"  name="addcomment" class="meta-item toggle-comment js-toggleCommentBox">
                                                    <i class="z-icon-comment">
                                                    </i>
                                                    收起评论
                                                </a>
                                                </span>
                                  <a href="#" class="meta-item zu-autohide js-thank" data-thanked="false">
                                    <i class="z-icon-thank">
                                    </i>
                                    感谢
                                  </a>
                                  <a href="#" class="meta-item zu-autohide js-share goog-inline-block goog-menu-button"
                                  role="button" aria-expanded="false" tabindex="0" aria-haspopup="true" style="user-select: none;">
                                    <div class="goog-inline-block goog-menu-button-outer-box">
                                      <div class="goog-inline-block goog-menu-button-inner-box">
                                        <div class="goog-inline-block goog-menu-button-caption">
                                          <i class="z-icon-share">
                                          </i>
                                          分享
                                        </div>
                                        <div class="goog-inline-block goog-menu-button-dropdown">
                                          &nbsp;
                                        </div>
                                      </div>
                                    </div>
                                  </a>
                                  <a href="#" class="meta-item zu-autohide js-collect">
                                    <i class="z-icon-collect">
                                    </i>
                                    收藏
                                  </a>
                                  <span class="zg-bull zu-autohide">
                                    •
                                  </span>
                                  <a href="#" class="meta-item zu-autohide js-noHelp">
                                    没有帮助
                                  </a>
                                  <span class="zg-bull zu-autohide">
                                    •
                                  </span>
                                  <a href="#" class="meta-item zu-autohide js-report">
                                    举报
                                  </a>
                                  <meta name="copyrightStatus" content="1">
                                  <meta name="disableCopyAvatar" content="">
                                  <span class="zg-bull">
                                    •
                                  </span>
                                  <a href="/terms#sec-licence-1" target="_blank" class="meta-item copyright">
                                    作者保留权利
                                  </a>
                                  <button class="meta-item item-collapse js-collapse">
                                    <i class="z-icon-fold">
                                    </i>
                                    收起
                                  </button>
                                </div>
                              </div>
                            <div style="display:none" data-reactid=".0"
                                        data-za-module="CommentList">
                                <br>
                                <!-- hehe -->
                                <div data-reactid=".0.7" class="_CommentForm_root_1-ko _CommentForm_expanded_39uD _CommentForm_bordered_2isg">
                                <input  type="text" name="pl2" style="border:1px solid #DDDDDD;border-radius:5px;height:40px;width:420px;">
                                <div >&nbsp&nbsp &nbsp&nbsp &nbsp&nbsp &nbsp&nbsp &nbsp&nbsp &nbsp&nbsp &nbsp&nbsp&nbsp&nbsp &nbsp&nbsp &nbsp&nbsp &nbsp&nbsp &nbsp&nbsp &nbsp&nbsp &nbsp&nbsp&nbsp&nbsp &nbsp&nbsp &nbsp&nbsp &nbsp&nbsp &nbsp&nbsp &nbsp&nbsp &nbsp&nbsp&nbsp&nbsp &nbsp&nbsp &nbsp&nbsp &nbsp&nbsp &nbsp &nbsp&nbsp &nbsp&nbsp &nbsp&nbsp
                                <button class="btn2" daid="{{$v['id']}}" data-reactid=".0.7.2.0" class="_CommentForm_submitButton_1N49 zg-btn-blue">
                                        评论
                                </button>
                                </div>
                                </div>
                            </div>
                              <a href="#" class="ignore zu-autohide" name="dislike" data-tooltip="s$b$不感兴趣">
                              </a>
                            </div>
                          </div>
                        </div>
                      </div>
                      <div class="undo-dislike-options" data-item_id="1491874697">
                        此内容将不会在动态中再次显示
                        <span class="zg-bull">
                          •
                        </span>
                        <a href="#" class="meta-item revert">
                          撤销
                        </a>
                        <a href="#" class="ignore zu-autohide close">
                        </a>
                      </div>
                    </div>
                    @endif
                    <!-- 点赞文章 -->
                    @if($v['bs']==2)
                    <div class="feed-item folding feed-item-hook feed-item-1491716992
                    " feed-item-p="" data-type="p" id="feed-1491716992" data-za-module="FeedItem"
                    data-za-index="">
                        <meta itemprop="ZReactor" data-id="2682215" data-meta="{&quot;source_type&quot;: &quot;member_voteup_article&quot;, &quot;voteups&quot;: 87290, &quot;comments&quot;: 7747, &quot;source&quot;: [[&quot;member&quot;, &quot;c3b47a1b2a1e38bcb636c4b48128c555&quot;], [&quot;column&quot;, 20327]]}">
                        <div class="feed-item-inner">
                            <div class="avatar">
                                <a title="" data-hovercard="p$t$rolly2008" class="zm-item-link-avatar"
                                target="_blank" href="/people/rolly2008">
                                    <img src="{{$v['pic']}}"
                                    class="zm-item-img-avatar">
                                </a>
                            </div>
                            <div class="feed-main">
                                <div class="feed-source" data-za-module="FeedSource">
                                    <a data-hovercard="p$t$rolly2008" href="https://www.zhihu.com/people/rolly2008"
                                    target="_blank" class="zg-link author-link" title="芊芊呐小桌儿">
                                        {{$v['nname']}}
                                    </a>
                                    赞了
                                    <a class="column_link" href="https://zhuanlan.zhihu.com/fakeaofu7" data-hovercard="c$t$fakeaofu7"
                                    target="_blank" data-za-element-name="Title">
                                        {{$v['nickName']}}
                                    </a>
                                    的文章
                                    <span class="zg-bull">
                                        •
                                    </span>
                                    <span class="time" data-timestamp="1491716992000">
                                        <?php echo tranTime($v['time']);?> 
                                    </span>
                                </div>
                                <div class="feed-content" data-za-module="PostItem">
                                    <meta itemprop="post-id" content="2682215">
                                    <meta itemprop="post-url-token" content="26237900">
                                    <h2 class="feed-title">
                                        <a style="font-size:20px"  target="_blank" class="post-link" href="https://zhuanlan.zhihu.com/p/26237900"
                                        data-za-element-name="Title">
                                            {!! $v['ititle'] !!}
                                        </a>
                                    </h2>
                                    <div class="entry-body post-body js-collapse-body">
                                    <!-- 记号 -->
                                        <div class="zm-item-vote">
                                             <div class="id2" daid="{{$v['id']}}" pass="{{$v['pass']}}">
                                            <a  class="zm-item-vote-count js-expand js-vote-count" href="javascript:;"
                                            data-bind-votecount="">
                                                 {{$v['pass']}}
                                            </a> </div>
                                        </div>
                                        <div class="zm-votebar" data-za-module="VoteBar">
                                            <button class="up" aria-pressed="false" title="赞">
                                                <i class="icon vote-arrow">
                                                </i>
                                                <span class="count">
                                                     {{$v['pass']}}
                                                </span>
                                                <span class="label sr-only">
                                                    赞
                                                </span>
                                            </button>
                                        </div>
                                        <div class="author-info summary-wrapper">
                                            <span class="author-link-line">
                                                <a href="/people/wu-qing-yuan-41-96" data-hovercard="p$t$wu-qing-yuan-41-96"
                                                class="name author-link">
                                                    {{$v['nickName']}}
                                                </a>
                                            </span>
                                            <span title="可能是知乎侧颜颜值最高的小说作者" class="bio">
                                                 {{$v['introduce']}}
                                            </span>
                                        </div>
                                        <div class="zm-item-vote-info" data-votecount="87290" data-za-module="VoteInfo">
                                            <span class="voters text">
                                                <span class="user-block">
                                                    <a data-hovercard="p$t$DKinBJ" href="https://www.zhihu.com/people/DKinBJ"
                                                    target="_blank" class="zg-link author-link" title="邓柯">
                                                        邓柯
                                                    </a>
                                                    <span class="icon icon-badge-best_answerer icon-badge" data-tooltip="s$b$优秀回答者">
                                                    </span>
                                                    、
                                                </span>
                                                <span class="user-block">
                                                    <a data-hovercard="p$t$rolly2008" href="https://www.zhihu.com/people/rolly2008"
                                                    target="_blank" class="zg-link author-link" title="芊芊呐小桌儿">
                                                        芊芊呐小桌儿
                                                    </a>
                                                    、
                                                </span>
                                                <span class="user-block">
                                                    <a data-hovercard="p$t$mount_cristo" href="https://www.zhihu.com/people/mount_cristo"
                                                    target="_blank" class="zg-link author-link" title="edmond">
                                                        edmond
                                                    </a>
                                                    、
                                                </span>
                                                <span class="user-block">
                                                    <a data-hovercard="p$t$sgai" href="https://www.zhihu.com/people/sgai"
                                                    target="_blank" class="zg-link author-link" title="路人甲">
                                                        路人甲
                                                    </a>
                                                    、
                                                </span>
                                                <span class="user-block">
                                                    <a data-hovercard="p$t$excited-vczh" href="https://www.zhihu.com/people/excited-vczh"
                                                    target="_blank" class="zg-link author-link" title="vczh">
                                                        vczh
                                                    </a>
                                                </span>
                                                &nbsp;
                                                <a href="#" class="more text">
                                                    等&nbsp;
                                                    <span class="js-voteCount">
                                                        87290
                                                    </span>
                                                    &nbsp;人赞
                                                </a>
                                            </span>
                                        </div>
                                        <div class="post-content" data-author-name="吴清缘" data-entry-url="https://zhuanlan.zhihu.com/p/26237900">
                                            <textarea class="content hidden">
                                               <!-- 此处为全文的选项 -->
                                            </textarea>
                                            <div class="zh-summary summary clearfix">
                                                
                                                {!!$v['content']!!}
                                                
                                            </div>
                                            <div class="Tipjar-entry hidden js-tipjar">
                                                <div class="Tipjar-tagLine">
                                                    「对不起，对不起，对不起」
                                                </div>
                                                <a href="http://zhuanlan.zhihu.com/p/26237900#tipjar" target="_blank"
                                                class="Tipjar-entryButton">
                                                    赞赏
                                                </a>
                                            </div>
                                            <p class="hidden-default">
                                                <a class="post-link entry-link" target="_blank" href="https://zhuanlan.zhihu.com/p/26237900">
                                                     
                                                </a>
                                            </p>
                                        </div>
                                    </div>
                                    <div class="feed-meta">
                                        <div class="zm-item-meta meta clearfix js-contentActions">
                                            <div class="zm-meta-panel">
                                                <a data-follow="c:link" class="zg-follow meta-item js-followButton" href="#"
                                                id="cl-20327">
                                                    <i class="z-icon-follow">
                                                    </i>
                                                    关注专栏
                                                </a>
                                                <span class="ahh1" daid="{{$v['id']}}">
                                                <a href="" onclick="return false"  name="addcomment" class="meta-item toggle-comment js-toggleCommentBox">
                                                    <i class="z-icon-comment">
                                                    </i>
                                                    查看评论
                                                </a>
                                                </span>
                                                <span style="display:none" class="hha">
                                                <a href="" onclick="return false"  name="addcomment" class="meta-item toggle-comment js-toggleCommentBox">
                                                    <i class="z-icon-comment">
                                                    </i>
                                                    收起评论
                                                </a>
                                                </span>
                                                <a href="#" class="meta-item zu-autohide js-share goog-inline-block goog-menu-button"
                                                role="button" aria-expanded="false" tabindex="0" aria-haspopup="true" style="user-select: none;">
                                                    <div class="goog-inline-block goog-menu-button-outer-box">
                                                        <div class="goog-inline-block goog-menu-button-inner-box">
                                                            <div class="goog-inline-block goog-menu-button-caption">
                                                                <i class="z-icon-share">
                                                                </i>
                                                                分享
                                                            </div>
                                                            <div class="goog-inline-block goog-menu-button-dropdown">
                                                                &nbsp;
                                                            </div>
                                                        </div>
                                                    </div>
                                                </a>
                                                <span class="zg-bull zu-autohide">
                                                    •
                                                </span>
                                                <a href="#" class="meta-item zu-autohide js-report">
                                                    举报
                                                </a>
                                                <span class="zg-bull">
                                                    •
                                                </span>
                                                <a href="https://zhuanlan.zhihu.com/p/26237900" class="meta-item" target="_blank">
                                                    去往文章页
                                                </a>
                                                <button class="meta-item item-collapse js-collapse">
                                                    <i class="z-icon-fold">
                                                    </i>
                                                    收起
                                                </button>
                                            </div>

                                        </div>

                                        <div style="display:none" data-reactid=".0"
                                        data-za-module="CommentList">
                                            
                                           
                                            <br>
                                            <div data-reactid=".0.7" class="_CommentForm_root_1-ko _CommentForm_expanded_39uD _CommentForm_bordered_2isg">
                                            <input  type="text" name="pl3" style="border:1px solid #DDDDDD;border-radius:5px;height:40px;width:420px;">
                                            <div >&nbsp&nbsp &nbsp&nbsp &nbsp&nbsp &nbsp&nbsp &nbsp&nbsp &nbsp&nbsp &nbsp&nbsp&nbsp&nbsp &nbsp&nbsp &nbsp&nbsp &nbsp&nbsp &nbsp&nbsp &nbsp&nbsp &nbsp&nbsp&nbsp&nbsp &nbsp&nbsp &nbsp&nbsp &nbsp&nbsp &nbsp&nbsp &nbsp&nbsp &nbsp&nbsp&nbsp&nbsp &nbsp&nbsp &nbsp&nbsp &nbsp&nbsp &nbsp &nbsp&nbsp &nbsp&nbsp &nbsp&nbsp
                                            <button class="btn3" daid="{{$v['id']}}" data-reactid=".0.7.2.0" class="_CommentForm_submitButton_1N49 zg-btn-blue">
                                                    评论
                                            </button>
                                               
                                            </div>
                                            </div>
                                        </div>
                                        <a href="#" class="ignore zu-autohide" name="dislike" data-tooltip="s$b$不感兴趣">
                                        </a>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="undo-dislike-options" data-item_id="1491716992">
                            此内容将不会在动态中再次显示
                            <span class="zg-bull">
                                •
                            </span>
                            <a href="#" class="meta-item revert">
                                撤销
                            </a>
                            <a href="#" class="ignore zu-autohide close">
                            </a>
                        </div>
                    </div>
                    @endif
                    <!-- 关注问题 -->
                    @if($v['bs']==3)
                    <div class="feed-item folding feed-item-hook feed-item-1491801344
                      " feed-item-q="" data-type="q" id="feed-1491801344" data-za-module="FeedItem"
                      data-za-index="">
                        <meta itemprop="ZReactor" data-id="15534012" data-meta="{&quot;source&quot;: [[&quot;member&quot;, &quot;0970f947b898ecc0ec035f9126dd4e08&quot;]], &quot;source_type&quot;: &quot;member_follow_question&quot;, &quot;answers&quot;: 1, &quot;comments&quot;: 1, &quot;follows&quot;: 3}">
                        <div class="feed-item-inner">
                          <div class="avatar">
                            <a data-hovercard="p$t$excited-vczh" class="zm-item-link-avatar" target="_blank"
                            href="/people/excited-vczh" data-original_title="vczh">
                              <img src="{{$v['pic']}}"
                              class="zm-item-img-avatar">
                            </a>
                          </div>
                          <div class="feed-main">
                            <div class="feed-source" data-za-module="FeedSource">
                              <a data-hovercard="p$t$excited-vczh" href="https://www.zhihu.com/people/excited-vczh"
                              target="_blank" class="zg-link author-link" title="vczh">
                                {{$v['nname']}}
                              </a>
                              关注了问题
                              <span class="zg-bull">
                                •
                              </span>
                              <span class="time" data-timestamp="1491801344000">
                               <?php echo tranTime($v['time']);?> 
                              </span>
                            </div>
                            <div class="feed-content" data-za-module="QuestionItem">
                              <meta itemprop="question-id" content="15534012">
                              <meta itemprop="question-url-token" content="58281490">
                              <h2 class="feed-title">
                                <a style="font-size:20px"  class="question_link" href="/question/58281490" target="_blank" data-id="15534012"
                                data-za-element-name="Title">
                                  {{$v['ititle']}}
                                </a>
                              </h2>
                              <div class="feed-meta">
                                <div class="zm-item-meta meta clearfix js-contentActions">
                                  <div class="zm-meta-panel">
                                    <meta itemprop="url" content="/question/58281490">
                                    <a data-follow="q:link" class="follow-link zg-follow meta-item" href="javascript:;"
                                    id="sfb-15534012">
                                      <i class="z-icon-follow">
                                      </i>
                                      关注问题
                                    </a>
                                    <a href="#" class="meta-item toggle-comment js-toggleCommentBox">
                                      <i class="z-icon-comment">
                                      </i>
                                      查看评论
                                    </a>
                                    <span class="zg-bull">
                                      •
                                    </span>
                                    <a href="/question/58281490" class="meta-item" target="_blank">
                                      查看回答
                                    </a>
                                  </div>
                                </div>
                                <a href="#" class="ignore zu-autohide" name="dislike" data-tooltip="s$b$不感兴趣">
                                </a>
                              </div>
                            </div>
                          </div>
                        </div>
                    <div class="undo-dislike-options" data-item_id="1491801344">
                      此内容将不会在动态中再次显示
                          <span class="zg-bull">
                            •
                          </span>
                          <a href="#" class="meta-item revert">
                            撤销
                          </a>
                          <a href="#" class="ignore zu-autohide close">
                          </a>
                        </div>
                    </div>
                    @endif
                    @endforeach 
                </div>
                <script>
                    //记号1
                    //查看评论
                    $('.ahh').click(function(){
                        $(this).parent().parent().next().show();//显示的评论框
                        $(this).next().show();
                        $(this).hide();
                        //获取id
                        var daid=$(this).attr('daid');
                        // alert(daid);
                        var dd=$(this);
                        var create;
                        //执行ajax操作
                         $.ajax({
                         type: "get",
                         url: "/home/user/selectpl",
                         data: {daid:daid},
                         success: function(data){
                            if (data) {
                                //进行数据解析
                               eval('var arr='+data);
                               for (var i in arr) {
                                    var nickName=arr[i]['nickName'];
                                    var content=arr[i]['contentp'];
                                    var time=arr[i]['time'];
                                   //格式化时间戳
                                 function getLocalTime(nS) {
                                    return new Date(parseInt(nS) * 1000).toLocaleString().replace(/:\d{1,2}$/,' ');
                                    }
                                var ntime = getLocalTime(time);
                                //创建标签样式
                                     create ='<div style="border:1px solid #DDDDDD;border-radius:7px;" data-reactid=".0.4" class="_CommentBox_list_10_K"><div><div><div><a>&nbsp&nbsp&nbsp'+nickName+'</a></div><div>&nbsp&nbsp&nbsp&nbsp&nbsp'+content+'</div><div><time>&nbsp&nbsp&nbsp&nbsp&nbsp'+ntime+'</time></div></div></div></div>';
                                     dd.parent().parent().next().prepend(create);
                                    }
                            };
                        }
                      });

                    })
                    $('.ahh1').click(function(){
                        $(this).parent().parent().next().show();//显示的评论框
                        $(this).next().show();
                        $(this).hide();
                        //获取id
                        var daid=$(this).attr('daid');
                        // alert(daid);
                        var dd=$(this);
                        var create;
                        //执行ajax操作
                         $.ajax({
                         type: "get",
                         url: "/home/user/selectp2",
                         data: {daid:daid},
                         success: function(data){
                            if (data) {
                                //进行数据解析
                               eval('var arr='+data);
                               for (var i in arr) {
                                    var nickName=arr[i]['nickName'];
                                    var content=arr[i]['contentp'];
                                    var time=arr[i]['time'];
                                   //格式化时间戳
                                 function getLocalTime(nS) {
                                    return new Date(parseInt(nS) * 1000).toLocaleString().replace(/:\d{1,2}$/,' ');
                                    }
                                var ntime = getLocalTime(time);
                                //创建标签样式
                                     create ='<div style="border:1px solid #DDDDDD;border-radius:7px;" data-reactid=".0.4" class="_CommentBox_list_10_K"><div><div><div><a>&nbsp&nbsp&nbsp'+nickName+'</a></div><div>&nbsp&nbsp&nbsp&nbsp&nbsp'+content+'</div><div><time>&nbsp&nbsp&nbsp&nbsp&nbsp'+ntime+'</time></div></div></div></div>';
                                     dd.parent().parent().next().prepend(create);
                                    }
                            };
                        }
                      });

                    })
                    //收起评论
                    $('.hha').click(function(){
                        $(this).parent().parent().next().hide();
                        $(this).prev().show();
                        $(this).hide();
                    })
                     $('.hha1').click(function(){
                        $(this).parent().parent().next().hide();
                        $(this).prev().show();
                        $(this).hide();
                    })
                //评论操作 点击提交 biaoji
                $('.btn1').click(function(){
                    //获取input的值
                    var val=$('input[name=pl1]').val();
                    //获取此答案的id
                    var daid=$(this).attr('daid');
                    var dd=$(this);
                     //执行ajax操作
                         $.ajax({
                         type: "get",
                         url: "/home/user/insertpl",
                         data: {daid:daid,val:val},
                         success: function(data){
                            if (data) {
                                // alert(data);
                                //解析返回的数据
                                strs=data.split(","); //字符分割结果
                                 function getLocalTime(nS) {
                                    return new Date(parseInt(nS) * 1000).toLocaleString().replace(/:\d{1,2}$/,' ');
                                    }
                                var t=strs[1];
                                var time = getLocalTime(t);
                                create ='<div style="border:1px solid #DDDDDD;border-radius:7px;" data-reactid=".0.4" class="_CommentBox_list_10_K"><div><div><div><a>&nbsp&nbsp&nbsp'+strs[0]+'</a></div><div>&nbsp&nbsp&nbsp&nbsp&nbsp'+val+'</div><div><time>&nbsp&nbsp&nbsp&nbsp&nbsp'+time+'</time></div></div></div></div>';
                                //把这个样式动态添加到评论列表中
                                dd.parent().parent().parent().prepend(create);

                            };
                        }
                      });
                })
                 $('.btn2').click(function(){
                    //获取input的值
                    var val=$('input[name=pl2]').val();
                    //获取此答案的id
                    var daid=$(this).attr('daid');
                    var dd=$(this);
                     //执行ajax操作
                         $.ajax({
                         type: "get",
                         url: "/home/user/insertpl",
                         data: {daid:daid,val:val},
                         success: function(data){
                            if (data) {
                                // alert(data);
                                //解析返回的数据
                                strs=data.split(","); //字符分割结果
                                 function getLocalTime(nS) {
                                    return new Date(parseInt(nS) * 1000).toLocaleString().replace(/:\d{1,2}$/,' ');
                                    }
                                var t=strs[1];
                                var time = getLocalTime(t);
                                create ='<div style="border:1px solid #DDDDDD;border-radius:7px;" data-reactid=".0.4" class="_CommentBox_list_10_K"><div><div><div><a>&nbsp&nbsp&nbsp'+strs[0]+'</a></div><div>&nbsp&nbsp&nbsp&nbsp&nbsp'+val+'</div><div><time>&nbsp&nbsp&nbsp&nbsp&nbsp'+time+'</time></div></div></div></div>';
                                //把这个样式动态添加到评论列表中
                                dd.parent().parent().parent().prepend(create);

                            };
                        }
                      });
                })

                //文章的评论
                  $('.btn3').click(function(){
                    //获取input的值
                    var val=$('input[name=pl3]').val();
                    //获取此答案的id
                    var daid=$(this).attr('daid');
                    var dd=$(this);
                     //执行ajax操作
                         $.ajax({
                         type: "get",
                         url: "/home/user/insertpl1",
                         data: {daid:daid,val:val},
                         success: function(data){
                            if (data) {
                                // alert(data);
                                //解析返回的数据
                                strs=data.split(","); //字符分割结果
                                 function getLocalTime(nS) {
                                    return new Date(parseInt(nS) * 1000).toLocaleString().replace(/:\d{1,2}$/,' ');
                                    }
                                var t=strs[1];
                                var time = getLocalTime(t);
                                create ='<div style="border:1px solid #DDDDDD;border-radius:7px;" data-reactid=".0.4" class="_CommentBox_list_10_K"><div><div><div><a>&nbsp&nbsp&nbsp'+strs[0]+'</a></div><div>&nbsp&nbsp&nbsp&nbsp&nbsp'+val+'</div><div><time>&nbsp&nbsp&nbsp&nbsp&nbsp'+time+'</time></div></div></div></div>';
                                //把这个样式动态添加到评论列表中
                                dd.parent().parent().parent().prepend(create);

                            };
                        }
                      });
                })
                //点赞回答问题的操作 记号
                $('.id1').click(function(){
                    var id1=$(this).attr('daid');
                    var pass=$(this).attr('pass');
                    var hh=$(this);
                    $.ajax({
                     type: "get",
                     url: "/home/user/uppass",
                     data: {id1:id1,pass:pass},
                     success: function(data){
                        if (data) {
                            hh.children('a').css('background','#AECC33');
                            hh.children('a').html(data);
                        };
                    }
                  });
                })
                //点赞文章的操作 记号
                $('.id2').click(function(){
                    var id2=$(this).attr('daid');
                    var pass=$(this).attr('pass');
                    var hh=$(this);
                    $.ajax({
                     type: "get",
                     url: "/home/user/uppass",
                     data: {id2:id2,pass:pass},
                     success: function(data){
                        if (data) {
                            hh.children('a').css('background','#AECC33');
                            hh.children('a').html(data);
                        };
                    }
                  });
                })
                </script>
                <a href="javascript:;" id="zh-load-more" data-method="next" class="zg-btn-white zg-r3px zu-button-more"
                style="">
                    更多
                </a>
            </div>
        </div>
    </div>
    <div class="zu-main-sidebar" data-za-module="RightSideBar">
        <div class="shameimaru-section" data-info="{&quot;category&quot;: &quot;2&quot;, &quot;ad_zone_id&quot;: 1, &quot;version&quot;: &quot;1&quot;, &quot;ad_id&quot;: 3853, &quot;timestamp&quot;: 1491718490.053743, &quot;sign&quot;: &quot;00979f7b13c0b4bee9258fcd07028f8e&quot;}"
        data-close="https://sugar.zhihu.com/track?vs=1&amp;ai=3853&amp;lo=home_up&amp;cg=2&amp;ts=1491718490.05&amp;si=27cbb14e29ea4537acbfde5616e7cb3a&amp;lu=40985933&amp;hn=ad-engine.ad-engine.4f51a28d&amp;at=close&amp;ut=0a0d3f31b9c14029bd2720361f335207&amp;pf=Windows&amp;az=1&amp;sg=368054b470c97d5d9f41f9423efa2a35"
        data-za-module="AdItem">
            <a class="shameimaru-link" href="https://sugar.zhihu.com/track?vs=1&amp;ai=3853&amp;lo=home_up&amp;tu=aHR0cHM6Ly93d3cuemhpaHUuY29tL2xpdmVzL3NwZWNpYWxzLzgzMTE0NzMxMDU3Nzc4Mjc4ND91dG1fY2FtcGFpZ249emhpaHVsaXZlJnV0bV9tZWRpdW09aW50ZXJuYWwmdXRtX3NvdXJjZT16aGlodWNvbW1lcmNpYWwmdXRtX2NvbnRlbnQ9emhpaHVfd2ViaG9tZXBhZ2V0b3ByaWdodF9saW5r&amp;cg=2&amp;ts=1491718490.05&amp;si=27cbb14e29ea4537acbfde5616e7cb3a&amp;lu=40985933&amp;hn=ad-engine.ad-engine.4f51a28d&amp;at=click&amp;ut=0a0d3f31b9c14029bd2720361f335207&amp;pf=Windows&amp;az=1&amp;sg=00979f7b13c0b4bee9258fcd07028f8e"
            target="_blank" rel="nofollow">
                <img src=""
                srcset=""
                alt="">
            </a>
            <meta itemprop="view_url" content="[&quot;https://sugar.zhihu.com/track?vs=1&amp;ai=3853&amp;lo=home_up&amp;cg=2&amp;ts=1491718490.05&amp;si=27cbb14e29ea4537acbfde5616e7cb3a&amp;lu=40985933&amp;hn=ad-engine.ad-engine.4f51a28d&amp;at=view&amp;ut=0a0d3f31b9c14029bd2720361f335207&amp;pf=Windows&amp;az=1&amp;sg=368054b470c97d5d9f41f9423efa2a35&quot;]">
            <a class="shameimaru-close z-ico-shameimaru-close" data-tooltip="s$b$不再显示"
            rel="nofollow">
            </a>
            <img class="shameimaru-pixel" src="https://sugar.zhihu.com/track?vs=1&amp;ai=3853&amp;lo=home_up&amp;cg=2&amp;ts=1491718490.05&amp;si=27cbb14e29ea4537acbfde5616e7cb3a&amp;lu=40985933&amp;hn=ad-engine.ad-engine.4f51a28d&amp;at=impression&amp;ut=0a0d3f31b9c14029bd2720361f335207&amp;pf=Windows&amp;az=1&amp;sg=368054b470c97d5d9f41f9423efa2a35">
        </div>
        <div class="zm-side-section">
            <div class="zm-side-section-inner">
                <div class="zm-side-nav-group">
                    <ul class="zm-side-nav" id="zg-sidebar-nav">
                        <li class="zm-side-nav-li">
                            <a class="zm-side-nav-link" href="/collections" data-za-c="collection"
                            data-za-l="sidebar_collections" data-za-a="visit_collections">
                                <i class="zg-icon zg-icon-sidenav-fav">
                                </i>
                                我的收藏
                                <!-- <span class="zg-num">
                                 <!--    10
                                </span> -->
                            </a>
                        </li>
                        <li class="zm-side-nav-li">
                            <a class="zm-side-nav-link" href="/question/following">
                                <i class="zg-icon zg-icon-sidenav-follow">
                                </i>
                                我关注的问题
                            </a>
                        </li>
                        <li class="zm-side-nav-li">
                            <a class="zm-side-nav-link" href="/question/invited">
                                <i class="zg-icon zg-icon-sidenav-invite">
                                </i>
                                邀请我回答的问题
                            </a>
                        </li>
                        <li class="zm-side-nav-li">
                            <a class="zm-side-nav-link z-icon-container " href="/balance">
                                <i class="zg-icon icon icon-purse">
                                </i>
                                我的余额
                            </a>
                        </li>
                        <li class="zm-side-nav-li">
                            <a class="zm-side-nav-link z-icon-container " href="/coupon">
                                <i class="zg-icon icon icon-coupon">
                                </i>
                                我的礼券
                            </a>
                        </li>
                    </ul>
                </div>
                <div class="zm-side-nav-group">
                    <ul class="zm-side-nav">
                        <li class="zm-side-nav-li rq3-publiceditlink" id="rq3-sidenav-link">
                            <a class="zm-side-nav-link" href="/watch">
                                <i class="zg-icon zg-icon-sidenav-publicedit">
                                </i>
                                公共编辑动态
                                <span class="zg-num hidden">
                                    0
                                </span>
                            </a>
                        </li>
                        <li class="zm-side-nav-li">
                            <a class="zm-side-nav-link z-ico-container" href="/community">
                                <i class="z-ico-community">
                                </i>
                                社区服务中心
                            </a>
                        </li>
                        <li class="zm-side-nav-li">
                            <a class="zm-side-nav-link z-ico-container" href="/copyright">
                                <i class="zg-icon icon icon-copyright">
                                </i>
                                版权服务中心
                            </a>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
        <div class="SidebarSection SidebarListNav zm-side-my-columns">
            <h3>
                &nbsp&nbsp&nbsp&nbsp知乎专栏
            </h3>
            <ul class="column-homepage zm-side-nav column-empty">
                <li class="zm-side-nav-li">
                    <a class="column-homepage-link column-link zm-side-nav-link" href="/home/zhuanlan"
                    target="_blank">
                        <i class="icon-column-logo sprite-sidebar-icon-column-normal">
                        </i>
                        <span class="name">
                            专栏-发现
                        </span>
                    </a>
                </li>
            </ul>
           <ul class="zm-side-nav column-list">
                <h4>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp我的专栏</h4>
                @if($resss)
                @foreach($resss as $k=>$v)
                <li style="list-style:none;" class="zm-side-nav-li">
                    @if($v->examine)
                    <a class="column-homepage-link column-link zm-side-nav-link" href="/home/zhuanlan/wdzl?id={{$v->id}}"
                    target="_blank">
                        <i class="icon-column-logo sprite-sidebar-icon-column-normal">
                        @if($v->zlpic)
                        <img src="{{$v->zlpic}}" alt="" style="width:25px;height:25px;">
                        @else
                        <img src="/homeCSS/img/1.jpg" alt="" style="width:25px;height:25px;">
                        @endif
                        </i>
                        <span class="name">{{$v->cname}}</span>
                    </a>
                    @else
                     <i class="icon-column-logo sprite-sidebar-icon-column-normal">
                    @if($v->zlpic)
                    <img src="{{$v->zlpic}}" alt="" style="width:25px;height:25px;">
                    @else
                    <img src="/homeCSS/img/1.jpg" alt="" style="width:25px;height:25px;">
                    @endif
                    </i>
                    <span class="name">{{$v->cname}}(待审核)</span>
                    @endif
                </li>
                @endforeach
                @else
                <li style="list-style:none;"></li>
                @endif
            </ul>
            <script id="SidebarColumnItem-template" type="text/template">
            </script>
            <ul class="zm-side-nav">
            </ul>
        </div>
        <div class="SidebarSection SidebarListNav">
            <ul class="SidebarListNav-list">
                <li class="SidebarListNav-listItem">
                    <a class="SidebarListNav-itemLink DownloadApp-link" href="#">
                        <i class="SidebarListNav-avatar sprite-sidebar-icon-zhi">
                        </i>
                        <span class="SidebarListNav-label">
                            下载 App
                        </span>
                    </a>
                </li>
            </ul>
        </div>
        <div id="zh-footer" class="zh-footer">
            <div class="content zg-wrap clearfix">
                <ul>
                    <li>
                        <a href="https://liukanshan.zhihu.com" target="_blank">
                            刘看山
                        </a>
                    </li>
                    <li>
                        <a href="/question/19581624" target="_blank">
                            知乎指南
                        </a>
                    </li>
                    <li>
                        <a href="javascript:;" id="js-feedback-button">
                            建议反馈
                        </a>
                    </li>
                    <li>
                        <a href="/app" target="_blank">
                            移动应用
                        </a>
                    </li>
                    <li>
                        <a href="/careers">
                            加入知乎
                        </a>
                    </li>
                    <li>
                        <a href="/terms" target="_blank">
                            知乎协议
                        </a>
                    </li>
                    <li>
                        <a href="/jubao" target="_blank">
                            举报投诉
                        </a>
                    </li>
                    <li>
                        <a href="/contact">
                            联系我们
                        </a>
                    </li>
                </ul>
                <span class="copy">
                    © 2017 知乎
                </span>
            </div>
        </div>
    </div>
</div>
@endsection

    <script type="text/json" class="json-inline" data-name="current_user">[""]</script>
    <script type="text/json" class="json-inline" data-name="user_status">[null, null, false]</script>
    <script type="text/json" class="json-inline" data-name="env">["zhihu.com", "comet.zhihu.com", false, null, false, false]</script>
    <script type="text/json" class="json-inline" data-name="permissions">[]</script>


    <script src="/homeCSS/js/vendor.js"></script>
    <script src="/homeCSS/js/base.js"></script>
    <script src="/homeCSS/js/common.js"></script>
    <script src="/homeCSS/js/richtexteditor.js" async></script>

        <!-- 搜索 -->
    @section('sousuo')
    <script src="/homeCSS/js/ga.js" async=""></script>
    <script async="" src="/homeCSS/js/zap.js"></script>
    @show
    <!-- 搜索 -->

<?php 
function tranTime($time) {
$rtime = date("m-d H:i",$time);
$htime = date("H:i",$time);
$time = time() - $time;
if ($time < 60) {
$str = '刚刚';
}
elseif ($time < 60 * 60) {
$min = floor($time/60);
$str = $min.'分钟前';
}
elseif ($time < 60 * 60 * 24) {
$h = floor($time/(60*60));
$str = $h.'小时前 '.$htime;
}
elseif ($time < 60 * 60 * 24 * 3) {
$d = floor($time/(60*60*24));
if($d==1)
$str = '昨天 '.$rtime;
else
$str = '前天 '.$rtime;
}
else {
$str = $rtime;
}
return $str;
}
 ?>

@section('seach')
<!-- 话题搜索 开始-->
    <script type="text/javascript">

    //绑定按键抬起事件 
    $("#sousuo").keyup(function(){
         // alert(1);
    //获取话题
    var topic = $(this).val();  
    //判断是否查询到数据
       if(topic){
        //发送ajax
           $.get('/home/index/sousuo',{topic:topic},function(data){
              //循环遍历
              for (var i = 0; i <  data.length; i++){
                //创建新的div
                var newDiv = createDiv();
                //给新建div里的span标签赋值话题
                newDiv.find('span').html(data[i].title);
                //给新建div里的span标签赋值id
                newDiv.find('span').attr('sid',data[i].id);
                //将新建div插入到元素内部
                $(".ui-suggest").append(newDiv);
                //改变元素的样式
                $(".ui-suggest").css('display','block'); 
              };
            });
        }  
    })

    //绑定鼠标按下事件
    $("#sousuo").keydown(function(){
      //通过class找到子div并移除
        $(".ui-suggest").find('.row').remove(); 
    })

    //获取span的父级并绑定单击事件,
     $('.row').live('click',function(){
      //获取所有子级
      var a = $(this).children('span');
      //获取id
      var id = a.attr('sid');
      //获取话题
      var title = a.html();
      //移除被单击的div
      $('.input-container').css('display','none');
      // $(this).remove();
      //创建li标签
      var newLi = createLi();
      //通过.tag-link赋值title
      newLi.find('.tag-link').html(title);
      // //给隐藏域赋值id
      newLi.find('.aaa').val(id);
      //将创建好的li插入到指定元素的内部
      $('.tags').append(newLi);
      //给li标签中的i标签绑定单击事件
      $('.icon-ic_close').live('click',function(){
      //移除li
      $(this).parents('li').remove();
      //显示搜索框
      $('.input-container').css('display','block');
      })
    })


    //封装函数 创建span
    function createDiv()
    {
      //创建span,并绑定单击事件
      var divsou = $('<div class="row" style="select: none;"><span sid="" class="name" style="select: none;"></span></div>');
                     
      //返回创建的span
      return divsou;
    } 

    //封装函数创建li
    function createLi()
    {
      //创建li
      var lis = $('<li ng-repeat="tag in tags" class="ng-scope"><span class="inner-wrapper"><a sid="" class="tag-link ng-binding" href="javascript:;" target="_blank"></a><a class="remove-tag" href="javascript:;" ng-click="removeTag(tag)" title="移除"><i class="icon-ic_close"></i></a></span><input type="hidden" name="tid" class="aaa" value=""></li>');
      //返回创建的li
      return lis;
    }

</script>
@show

<!-- 话题搜索 结束-->
